This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid setting additional linker flags at global scope
* Setting CMAKE_EXE_LINKER_FLAGS was used also for NMODL when NMODL is built from submodule * In case of LLVM OpenMP offload, if binary is being created from the object that is not compiled with OpenMP flags, it causes link error: echo "int main() { return 0; } " > foo.cpp clang++ -c foo.cpp # adding openmp flags here doesn't cause below error clang++ foo.o -o foo -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda nvlink fatal : Could not open input file '/tmp/foo-0b9a1a.cubin' clang-12: error: nvlink command failed with exit code 1 (use -v to see invocation)
- Loading branch information