Skip to content

Commit

Permalink
gcc-ymp script added. It build C codes with ymp startcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Mar 14, 2024
1 parent 24b1c81 commit dc29dbb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/gcc-ymp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
is_shared=false
for arg in "${*}" ; do
if [[ "$arg" == "-shared" ]] ; then
is_shared=true
fi
done

if [[ "${is_shared}" == true ]] ; then
exec gcc $* -nostdlib -lc
else
exec gcc $* -nostdlib -lc /usr/lib64/start-$(uname -m).o
fi

0 comments on commit dc29dbb

Please sign in to comment.